Solving Linear Homogeneous Recurrence Relations of Degree Two